*{
    padding: 0;
    margin: 0;
}

html,body{
    width:100%;
    height: 100%;
}

body{
    background: url("../img/bg.png") no-repeat center;
    background-size: cover;
    position: relative;
    font-size: 16px;
    color: white;
}

.footer{
    color: white;
    font-size: 0.8em;
    text-align: center;
    margin-top: 8em;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color .2s ease-out;
}

.loading-anim {
    position: relative;
    width: 200px;
    height: 200px;
    margin: auto;
    perspective: 800px;
    transform-style: preserve-3d;
    transform: translateZ(-100px) rotateY(-90deg) rotateX(90deg) rotateZ(90deg) scale(0.5);
    opacity: 0;
    transition: all .2s ease-out;
}
.loading-anim .circle {
    width: 100%;
    height: 100%;
    animation: spin 5s linear infinite;
}
.loading-anim .border {
    position: absolute;
    border-radius: 50%;
    border: 3px solid #e34981;
}
.loading-anim .out {
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border-left-color: transparent;
    border-right-color: transparent;
    animation: spin 2s linear reverse infinite;
}
.loading-anim .in {
    top: 18%;
    left: 18%;
    width: 64%;
    height: 64%;
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: spin 2s linear infinite;
}
.loading-anim .mid {
    top: 40%;
    left: 40%;
    width: 20%;
    height: 20%;
    border-left-color: transparent;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

.loading .loading-anim {
    transform: translateZ(0) rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(1);
    opacity: 1;
}

.loading .loading-overlay {
    background: rgba(255, 255, 255, 0.5);
}

.dot {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e34981;
    animation: jitter 5s ease-in-out infinite, fade-in-out 5s linear infinite;
}

.dot:nth-child(1) {
    top: 90px;
    left: 180px;
    animation-delay: 0s;
}

.dot:nth-child(2) {
    top: 135px;
    left: 168px;
    animation-delay: 0.41667s;
}

.dot:nth-child(3) {
    top: 168px;
    left: 135px;
    animation-delay: 0.83333s;
}

.dot:nth-child(4) {
    top: 180px;
    left: 90px;
    animation-delay: 1.25s;
}

.dot:nth-child(5) {
    top: 168px;
    left: 45px;
    animation-delay: 1.66667s;
}

.dot:nth-child(6) {
    top: 135px;
    left: 12px;
    animation-delay: 2.08333s;
}

.dot:nth-child(7) {
    top: 90px;
    left: 0px;
    animation-delay: 2.5s;
}

.dot:nth-child(8) {
    top: 45px;
    left: 12px;
    animation-delay: 2.91667s;
}

.dot:nth-child(9) {
    top: 12px;
    left: 45px;
    animation-delay: 3.33333s;
}

.dot:nth-child(10) {
    top: 0px;
    left: 90px;
    animation-delay: 3.75s;
}

.dot:nth-child(11) {
    top: 12px;
    left: 135px;
    animation-delay: 4.16667s;
}

.dot:nth-child(12) {
    top: 45px;
    left: 168px;
    animation-delay: 4.58333s;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
@keyframes jitter {
    0% {
        transform: scale(1, 1);
    }
    25% {
        transform: scale(0.7, 0.7);
    }
    50% {
        transform: scale(1, 1);
    }
    75% {
        transform: scale(1.3, 1.3);
    }
    100% {
        transform: scale(1, 1);
    }
}
@keyframes fade-in-out {
    0% {
        opacity: 0.8;
    }
    25% {
        opacity: 0.2;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

.mask{
    width: 100%;
    height:100%;
    background-color:#0203024d;
    position: absolute;
    left: 0;
    top:0;
    z-index:-1;
}

.info{
    line-height:2em;
    padding: 3em;
}

.info::after{
    content: '';
    clear: both;
}

.info img{
    display: inline-block;
    float: right;
}

.info .suggest{
    float: left;
    background: url("../img/email.png") no-repeat center;
    height: 32px;
    width: 32px;
    cursor: pointer;
}

.info>p{
    display: inline-block;
    color: white;
    float: right;
}

.info>p.m{
    display: none;
}

.match{
    margin-top: 2em;
}

.match .loading{
    opacity: 0;
}

.match .loading>p{
    margin: 0;
    padding: 1em;
    text-align: center;
}

.match .btn_confirm,.btn_cancel{
    padding: 1em;
    background: #ca1053;
    text-align: center;
    border-radius: 1em;
    cursor: pointer;
    box-shadow: 1px 1px 1px 1px #8b113d;
    width: 10em;
    margin: 0 auto;
}

.match .btn_confirm:hover{
    font-size: 1.1em;
    font-weight: bold;
    color: #76e9f6;
}

.match .btn_cancel{
    background: #6bb1bb;
    box-shadow: 1px 1px 1px 1px #3e6e75;
    display: none;
}

.match .btn_cancel:hover{
    font-size: 1.1em;
    font-weight: bold;
    color: #ca1053;
}

.room{
    width: 600px;
    height: 450px;
    background: white;
    margin: 0 auto;
}

.room header{
    background: #e26d82;
    padding: 5px;
}

.room .content{
    height: 340px;
    color: #766969;
    overflow-y:scroll;
    overflow-x:hidden;
}

.room footer{
    height:50px;
    background:#e26d82 ;
    text-align: center;
    padding: 10px;
}

.room header .avatars{
    display: inline-block;
}

.room header .btn{
    border: none;
    background:none;
    padding: 0.6em;
    border-radius: 0.8em;
    float: left;
    font-size: 1.1em;
}

.room header{
    text-align: center;
}

.room header .btn:hover{
    background: #e22c4d;
    color: white;
}

.room header .avatars img{
    width:50px;
    height: 50px;
    border-radius: 25px;
    display: inline-block;
}

.room footer .input{
    border: none;
    height: 30px;
    border-radius: 5px;
    width: 250px;
    margin-right: 10px;
    color: #8a797c;
    padding-left:10px;
}

.room footer .btn_send{
    display: inline-block;
    cursor: pointer;
}

.room footer .btn_send:hover{
    color:#3bf8fa;
}

.room .content .msg{
    background: #ebd0d0;
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
}

.room .content .other img{
    width:50px;
    height:50px;
    border-radius:25px;
    float: left;
    margin-top: 10px;
}

.room .content .other>div{
    float: left;
    padding-left:5px;
}

.room .content .other .nickname{
    margin: 0;
    margin-left: 10px;
    font-size: 0.8em;
}

.room .content .other .msg{
    background: white;
    margin: 0;
}

.room .content .other .msg .arrow{
    float: left;
    border-top:10px transparent solid;
    border-left:0 pink solid;
    border-bottom:10px transparent solid;
    border-right:10px pink solid;
    margin-top: 8px;
}

.room .content .other .msg .detail_msg{
    float: left;
    background: pink;
    border-radius: 5px;
    padding: 10px;
    max-width: 250px;
}

.room .content .me img{
    width:50px;
    height:50px;
    border-radius:25px;
    float:right;
}

.room .content .me>div{
    float: right;
}


.room .content .me .msg{
    background: white;
    margin: 0;
}

.room .content .me .msg .arrow{
    float: right;
    border-top:10px transparent solid;
    border-left:10px #43eed8 solid;
    border-bottom:10px transparent solid;
    border-right:0 #43eed8 solid;
    margin-top: 8px;
}

.room .content .me .msg .detail_msg{
    float: left;
    background: #43eed8;
    border-radius: 5px;
    padding: 10px;
    max-width: 250px;
}

.room .content .sys_msg{
    display: none;
    color:white;
    position: fixed;
    left: 45%;
    padding: 5px;
    background:#62dfd3;
    border-radius: 5px;
}



/*适配手机*/
@media screen and (max-width:600px) {
    .footer{
        margin-top: 4em;
    }

    .info{
        padding: 1em;
    }

    .info>p{
        display: none;
    }

    .info>p.m{
        display:inline-block;
    }

    .match{
        margin-top: 4em;
    }

    .room{
        height: 100vh;
        width: 100%;
        position: absolute;
        left: 0;
        top: 0;
    }

    .room header{
        height: 10%;
        padding: 0;
    }

    .room header .btn{
        padding: 0.6em;
    }

    .room header .btn:hover{
        background: none;
        color:#62dfeb;
    }

    .room .content{
        height: 80%;
        width: 100%;
    }

    .room footer{
        height: 10%;
    }

    .room .content .sys_msg{
        left: 35%;
        background:#e26d82;
    }

    .room .content .msg .detail_msg{
        max-width: 170px !important;
    }

    .room header .avatars img{
        height: 48px;
        width: 48px;
        border-radius: 24px;
    }

    .match .btn_confirm:hover{
        font-size: 1em;
        color: white;
        font-weight: normal;
    }

    .match .btn_cancel:hover{
        font-size: 1em;
        font-weight: normal;
        color: white;
    }
}
